Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add 'origin/' prefix to branch in git rev-parse #335

Merged
merged 1 commit into from
May 6, 2021

Conversation

nkottary
Copy link
Member

@nkottary nkottary commented May 5, 2021

It seems git rev-parse <branch-name>: only works for default branches and checked out branches. For remote branches we need to add origin/ as a prefix.

@vdayanand vdayanand requested a review from DilumAluthge May 6, 2021 07:16
@nkottary nkottary merged commit 4eaa316 into JuliaRegistries:master May 6, 2021
nkottary added a commit that referenced this pull request Jun 21, 2021
Doing a bare git clone:
* Makes all the remote branches local
* Gives us all the tags

Its also slightly faster than just clone.
This will fix #339 and also correctly fixes what #335 tried to fix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants